define('views/map', [], function () {
    function Map() {
        this.map = null

    }
    Map.prototype.Init = function () {
        this.map = L.map(document.getElementById('map'), {
            center: [34.773586, 110.06379],
            zoom: 5,
            attributionControl: false,
            zoomControl:false
        });

        this.map.addControl(L.control.zoom({position:'bottomright'}))

        // L.tileLayer.chinaProvider('TianDiTu.Normal.Map', { maxZoom: 18, minZoom: 5 }).addTo(this.map);
        // L.tileLayer.chinaProvider('TianDiTu.Normal.Annotion', { maxZoom: 18, minZoom: 5 }).addTo(this.map);
        L.tileLayer.chinaProvider('GaoDe.Normal.Map', { maxZoom: 18, minZoom: 5 }).addTo(this.map);
        // L.tileLayer.chinaProvider('Geoq.Normal.Gray', { maxZoom: 18, minZoom: 5 }).addTo(this.map);
        
        window.map = this.map

    }

    return Map

});